/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package ArrayLat;

/**
 *
 * @author adi
 */
public class MultiArray {
    static int maxRow = 3;
    
    public static void main(String[] args) {

        int[][] yourBoard = {
            {1,2,3},
            {6,7,8,9,10},
            {11,12,13,14,15,16,17}
        };

//        System.out.print("Array Baris pertama : ");
//        for(int i=0; i<3; i++){
//            System.out.print(yourBoard[0][i] + " ");
//        }
//        System.out.println("");
//
//        System.out.print("Array Baris kedua : ");
//        for(int i=0; i<5; i++){
//            System.out.print(yourBoard[1][i] + " ");
//        }
//        System.out.println("");
//
//        System.out.print("Array Baris ketiga : ");
//        for(int i=0; i<7; i++){
//            System.out.print(yourBoard[2][i] + " ");
//        }
//        System.out.println("");

        for(int row=0; row<3; row++){
            System.out.print("Array Baris ke-" + row + " : ");
            for(int col=0; col<maxRow; col++){
                System.out.print(yourBoard[row][col] + " ");
            }
            maxRow = maxRow + 2;
            System.out.println("");
        }
    }
}
